<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php echo $cabecalho; ?>
<?php echo $menu_esq; ?>
<div id="mainContent">
<h1>Novo Usuario</h1>
<div><?php echo $msg;?></div>
<p>
<?php echo form::open("user/salvar"); ?>
<table width="100%" border="1">
      <tr>
        <td>nome</td>
        <td>valor</td>
      </tr>
	  <tr>
        <td>username</td>
        <td><?php echo form::input("username", $form['username']); ?></td>
      </tr>
      <tr>
        <td>Senha</td>
        <td><?php echo form::password("password", ""); ?></td>
      </tr>
      <tr>
        <td>Confirme a senha</td>
        <td><?php echo form::password("repassword", ""); ?></td>
      </tr>
      <tr>
        <td>Usuario Ativo</td>
        <td><?php echo form::checkbox("active", $form['active'], "1"); ?></td>
      </tr>
      <tr>
        <td>Roles</td>
        <td><?php echo form::dropdown('roles', $roles, $form['roles']) ?></td>
      </tr>
      <tr>
        <td><?php echo form::submit('enviar', 'Criar')?>&nbsp;</td>
        <td><?php echo html::anchor('user/listar/', 'Voltar'); ?>&nbsp;</td>
      </tr>
    </table>
<?php echo form::hidden('acao', 'criar'); ?>
<?php echo form::close(); ?>
</p>
<!-- end #mainContent --></div>
<?php echo $rodape; ?>